public class test1 {
    int number = 0;
    int times = 0;
    String name = "~";
    public test1()
    {
        System.out.println("执行默认构造函数");
    }
    public test1(int number)
    {
        System.out.println("执行构造函数1");
        this.number = number;
    }
    public test1(int number,int times,String name)
    {
        System.out.println("执行构造函数2");
        this.number = number;
        this.times = times;
        this.name = name;
    }
    {
        System.out.println("执行构造代码块");
        number = 7;
        name = "xu";
    }
    public static void main(String[] args)
    {
        test1 test = new test1();
        System.out.println(test.number);
        test1 tes = new test1(1);
        System.out.println(tes.number);
        test1 te = new test1(1,1,"wei");
        System.out.println(te.number);
        System.out.println(te.name);
    }
}